<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		 <script src="../../js/vue.min.js"></script>
	</head>
	<body>
		<!--
		除了直接绑定到一个方法，也可以用内联 JavaScript 语句：：
		-->
		<div id="app">
		  <button v-on:click="say('hi')">Say hi</button>
		  <button v-on:click="say('what')">Say what</button>
		</div>
		 
		<script>
		new Vue({
		  el: '#app',
		  methods: {
		    say: function (message) {
			  alert(message);
		      console.log(message);
		    }
		  }
		})
		</script>
	</body>
</html>
